package com.aplink.generic.pojo.controlspec;

import com.aplink.generic.util.AndroidUIParser;

public class SpinnerSpec extends ControlSpec {
	private boolean isAddBlank;
	private String displayProperty;
	private String valueProperty;
	private String mContentData;
	private String mSearchControl;
	private String mSearchField;
	private boolean isSearch;
	
	public SpinnerSpec(boolean isAddBlank, String displayProperty,
			String valueProperty, String contentData, String searchControl,
			String searchField, boolean isSearch) {
		this.isAddBlank = isAddBlank;
		this.displayProperty = displayProperty;
		this.valueProperty = valueProperty;
		mContentData = contentData;
		mSearchControl = searchControl;
		mSearchField = searchField;
		this.isSearch = isSearch;
	}
	
	public String getSearchControl() {
		return mSearchControl;
	}
	
	public void setSearchControl(String searchControl) {
		mSearchControl = searchControl;
	}
	
	public String getSearchField() {
		return mSearchField;
	}
	
	public void setSearchField(String searchField) {
		mSearchField = searchField;
	}
	
	public boolean isAddBlank() {
		return isAddBlank;
	}
	
	public void setAddBlank(boolean isAddblank) {
		this.isAddBlank = isAddblank;
	}
	
	public String getDisplayProperty() {
		return displayProperty;
	}
	
	public void setDisplayProperty(String displayProperty) {
		this.displayProperty = displayProperty;
	}
	
	public String getValueProperty() {
		return valueProperty;
	}
	
	public void setValueProperty(String valueProperty) {
		this.valueProperty = valueProperty;
	}
	
	public String getContentData() {
		return mContentData;
	}
	
	public int getContentDataId() {
		return AndroidUIParser.getRawIdByName(mContentData);
	}
	
	public void setContentData(String contentData) {
		mContentData = contentData;
	}
	
	public boolean isSearch() {
		return isSearch;
	}
	
	public void setSearch(boolean isSearch) {
		this.isSearch = isSearch;
	}
}
